﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for AdminBAL
/// </summary>
public class AdminBAL
{
    AdminDAL _adminDAL;
	public AdminBAL()
	{
        _adminDAL = new AdminDAL();
	}

    public int AddRoute(int originID, int destinationID, double flyHour)
    {
        int routeid = _adminDAL.AddRoute(originID, destinationID, flyHour);
        return routeid;
    }

    public void AddSchedule(int routeid, string dayofWeek, string time)
    {
        _adminDAL.AddSchedule(routeid, dayofWeek, time);
    }

    public void AddPlane(string Name, int BusSeat, int FirstSeat, int ClubtSeat)
    {
        _adminDAL.AddPlane(Name, BusSeat, FirstSeat, ClubtSeat);
        
    }
}
